package com.amat0urheu.util;


//import com.google.common.collect.FluentIterable;
//import org.jclouds.ContextBuilder;
//import org.jclouds.openstack.nova.v2_0.NovaApi;
//import org.jclouds.openstack.nova.v2_0.features.ServerApi;
import org.springframework.stereotype.Component;

@Component
public class testUtils2 {


    public static void testStudy() {
        String identity = "admin";
        String credential = "123123";
        String endpoint = "http://192.168.201.17:5000/v3";

//        NovaApi novaApi = ContextBuilder.newBuilder("openstack-nova")
//                .endpoint(endpoint)
//                .credentials(identity, credential)
//                .buildApi(NovaApi.class);
//
//        ServerApi serverApi = novaApi.getServerApi("d40d42344bfd4647833b4abe941e7b30");
//
//        FluentIterable<org.jclouds.openstack.nova.v2_0.domain.Server> servers = serverApi.listInDetail().concat();
//
//        for (org.jclouds.openstack.nova.v2_0.domain.Server server : servers) {
//            System.out.println(server.getName() + " - " + server.getId());
//        }

    }

}